#!/usr/bin/env python
# -*- coding:utf-8 -*-

import numpy as np
from yy.helper.acad_helper import YYAutoCAD

points = [
    -4.221995027340221, 2.5177150860080655, 0.0, -4.221995027340221,
    2.5177150860080655, 0.0, -4.221995027340221, 2.5177150860080655, 0.0,
    -4.262042261927073, 2.293625902032557, 0.0, -4.305028099529226,
    1.8421956961974038, 0.0, -4.299345670642691, 1.3218651477234205, 0.0,
    -4.22313949740817, 0.9255930894124562, 0.0, -4.030719506319159,
    0.721012886464236, 0.0, -3.31409872347106, 0.7449257947135672, 0.0,
    -3.1308989877614737, 0.7723623765002126, 0.0, -3.1192622134804675,
    0.6799892825191591, 0.0, -3.224887364076037, 0.33328535160303696, 0.0,
    -3.508622922689065, -0.24951622462343437, 0.0, -3.799391441842888,
    -0.8677009003823439, 0.0, -3.956659346482858, -1.456340204385266, 0.0,
    -3.9665144047434233, -1.8055012777106971, 0.0, -3.7146530269822318,
    -1.8607455304652007, 0.0, -3.3073643413818856, -1.7355104031182371, 0.0,
    -2.3300897532305136, -1.3187111280602517, 0.0, -2.08501170386444,
    -1.2203829437913236, 0.0, -1.9814160395731617, -1.221401736559082, 0.0,
    -1.949878028305912, -1.4400990179441102, 0.0, -1.9659787317866853,
    -1.8048408678256354, 0.0, -2.011144452047129, -2.219978776400694, 0.0,
    -1.9493218421279799, -2.597891047382579, 0.0, -1.5878943367583587,
    -2.7131549411946763, 0.0, -0.9804791329117815, -2.500565847991154, 0.0,
    -0.39071792195671423, -2.0857821508382495, 0.0, 0.030657458196095454,
    -1.6689247606098343, 0.0, 0.2323311221471634, -1.5095010640457813, 0.0,
    0.3070442464582398, -1.508915202622306, 0.0, 0.3169401106315697,
    -1.7090754111079662, 0.0, 0.2676781565032166, -2.1217027860193, 0.0,
    0.20962449880473824, -2.564423022518139, 0.0, 0.22299039487103367,
    -2.981641199792342, 0.0, 0.39557802748884774, -3.2226229814230027, 0.0,
    0.739218795422439, -3.238083873038734, 0.0, 1.3091469524729027,
    -3.0007697905208905, 0.0, 1.9817022157753466, -2.7524093300482932, 0.0,
    2.5390424814850014, -2.599340087264545, 0.0
]
points = [
    -4.045952406523233, 2.2350190979469273, 0.0, -4.045952406523233,
    2.2350190979469273, 0.0, -4.045952406523233, 2.2350190979469273, 0.0,
    -4.045952406523233, 2.2350190979469273, 0.0, -3.7388220540646495,
    2.136742429051892, 0.0, -3.6641401511205025, 1.7163485433145764, 0.0,
    -3.694979417430669, 1.1379795885088073, 0.0, -3.807748317754399,
    -0.1585622586519726, 0.0, -3.7802107690938467, -0.5468476099326844, 0.0,
    -3.618626457175942, -0.684619707905501, 0.0, -3.2417301280791344,
    -0.5981404613425649, 0.0, -2.8354238360140327, -0.4504369178521608, 0.0,
    -2.3908115564088543, -0.2929073989016837, 0.0, -2.2246864304279326,
    -0.2646679634461977, 0.0, -2.173678103146115, -0.39961381894001935, 0.0,
    -2.1845842453706035, -0.8008457374177302, 0.0, -2.260030575817135,
    -1.336179273543753, 0.0, -2.305687349488599, -1.9552533272010284, 0.0,
    -2.2634583736327394, -2.381398812588535, 0.0, -1.3346459517738993,
    -2.1393939112962066, 0.0, -0.6343969124657833, -1.714005240825895, 0.0,
    -0.06504148079162912, -1.3834924007915874, 0.0, 0.1835698758077823,
    -1.2935856728188497, 0.0, 0.27800676427065385, -1.37774882304809, 0.0,
    0.23735657856877487, -1.8359178665128795, 0.0, 0.13848470383076325,
    -2.4082542684541908, 0.0, 0.049849720008729795, -3.0429911804455636, 0.0,
    0.05714969770282774, -3.5232141222141182, 0.0, 0.8397524880062472,
    -3.3867611419486336, 0.0, 1.4311701893077573, -2.9788996473893072, 0.0,
    1.9698989428333873, -2.6617823437273422, 0.0, 2.2455263039077016,
    -2.564352443653805, 0.0, 2.3631554038448024, -2.6319700087178566, 0.0,
    2.5521845802335132, -3.2277546505098904, 0.0, 2.8372546590302816,
    -3.554539706364682, 0.0, 3.3481453495064186, -3.6529831236690673, 0.0
]

points = np.array(points).reshape((-1, 3))
print(points)

YYAutoCAD(1).draw_3dpolyline(points)